package com.example.thegreatwall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "users")
public class Users {
    /**
     * 用户编号
     */
    @TableId(value = "user_id", type = IdType.INPUT)
    private Long userId;

    /**
     * 用户名称
     */
    @TableField(value = "user_name")
    private String userName;
    /**
     * 用户身份证
     */
    @TableField(value = "user_idcard")
    private String userIdcard;
    /**
     * 用户头像
     */
    @TableField(value = "user_profile")
    private String userProfile;

    /**
     * 用户电话
     */
    @TableField(value = "user_phone")
    private String userPhone;

    /**
     * 用户状态 0-正常 1-封禁
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 登录openid
     */
    @TableField(value = "openid")
    private String openid;
}